package com.share.example.stock.web;

import com.share.common.common.Result;
import com.share.example.stock.model.rsp.CollectReq;
import com.share.example.stock.model.rsp.CollectRsq;
import com.share.example.stock.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author author
 * @since 2023-07-18
 */
@RestController
public class UserController {
    @Autowired
    private IUserService userService;


    //展示收藏
    @RequestMapping("/collect/list")
    public Result collectList(CollectReq req) {
        List<CollectRsq> list = userService.collectList(req);
        return Result.success(list);
    }

}
